export interface IProToolBarProps {
  barStyle?: Object
  buttonGroup?: IToolButton[]
  searchSelector?: ISearchSelector
  isMoreSearchShow?: boolean
  onMoreSearchClick?: React.Dispatch<React.SetStateAction<boolean>>
  size?: ISizeType
  disableSearchMore?: boolean;
}
export interface IToolButton {
  type: IToolButtonType
  text?: string
  isShow?: boolean
  onClick: () => void
  id?: number
}
// 单条件搜索框
export interface ISearchSelector {
  Options: ISelectorItem[]
  defaultValue: any
  id?: number,

}
export interface ISelectorItem {
  value: any
  label: string,
  onClick?:(e:any) => void
}
export type IToolButtonType =
  | 'create'
  | 'delete'
  | 'import'
  | 'export'
  | 'print'

export type ISizeType = 'small' | 'middle' | 'large' | undefined
